<?php
namespace app\api\model\answers;
use \app\api\model\answers\Template;
use app\api\model\BaseModel;


class AnswersEvent extends BaseModel
{
    protected $table = 'answers_event';
    protected $autoWriteTimestamp = 'datetime';

    public function template(){
        return $this->hasOne(Template::class,'id','template_id');
    }
}
